﻿using Microsoft.EntityFrameworkCore;
using SaaS.Core;
using SaaS.Model.Entity.Auths;
using System;
using System.Collections.Generic;
using System.Text;

namespace SaaS.Tool
{
    public class SaaSDbContext : DbContext
    {
        protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
        {
            optionsBuilder.UseSqlServer(CoreSetting.DefaultConnectionString);
            base.OnConfiguring(optionsBuilder);
        }
        public DbSet<SystemAdmin> SystemAdmins { get; set; }
        public DbSet<SystemRole> SystemRoles { get; set; }
    }
}
